// 定义小仓库的数据类型
// 引入路由对象的ts类型
import { Category } from '@/api/product/attr/type'
import type { RouteRecordRaw } from 'vue-router'
// user用户小仓库
export interface UserState {
  token: string | null
  menuRoute: RouteRecordRaw[],
  username: string,
  avatar: string,
  userAsyncRoute: RouteRecordRaw[],
  buttons: string[]
}

// category仓库
export interface categoryState{
  c1: string | number,
  c1Arr: Category[],
  c2: string | number,
  c2Arr: Category[],
  c3: string | number,
  c3Arr: Category[]
}